﻿<div class="sprintproject">
    <h2>{{:Name}} <span class="SmallFont">{{:CurrentSprint}}</span></h2>

    <table id="usrtbl">
        <thead>
            <tr>
                <th style="width: 5%">Id</th>
                <th>Name</th>
                <th style="width: 14%">Assigned to</th>
                <th style="width: 4%">Tasks</th>
                <th style="width: 4%">Estim.</th>
                <th style="width: 4%">Remain.</th>
                <th style="width: 4%">Compl.</th>
                <th style="width: 4%">Compl %</th>
                <th style="width: 5%">Rank</th>
                <th style="width: 8%">State</th>
            </tr>
        </thead>
        <tbody>
            {{for UserStories}}
            <tr>
                <td style="background-color: #616161; color: #fff"><a target="_blank" href="{{:Url}}">{{:ID}}</a></td>
                <td style="text-align: left">
                    <h4>{{:Name}}</h4>
                </td>
                <td style="text-align: left">{{:AssignedTo}}</td>
                <td {{if SubTasks==0}}class="notasks" {{else}} style="text-align: right"{{/if}}>{{:SubTasks}}</td>
                <td style="text-align: right">{{:EstimatedTime}}</td>
                <td style="text-align: right">{{:RemainTime}}</td>
                <td style="text-align: right">{{:CompletedTime}}</td>
                <td style="text-align: right">{{:RatioCompleted}}%</td>
                <td>{{:Rank}}</td>
                <td class="{{if WIState==3}}keygreen{{else}}{{if WIState==1}}keyorange{{/if}}{{/if}}">
                    {{:State}}</td>
            </tr>
            {{/for}}
        </tbody>
        <tfoot>
            <tr>
                <td colspan="3">Total</td>
                <td>{{:TotalTasks}}</td>
                <td>{{:TotalEstimatedTime}}</td>
                <td>{{:TotalRemainTime}}</td>
                <td>{{:TotalCompletedTime}}</td>
                <td><strong>{{:RatioCompleted}}%</strong></td>
                <td colspan="2"></td>
            </tr>
        </tfoot>
    </table>
</div>
